#include "nrf24l01.h"
nRF24L01 rf;
byte TX_ADDRESS[5]  = 
{
  0x85,0x44,0x75,0x76,0x22
}; 
byte rx_buf[32] = {0};
void setup() 
{
  Serial.begin(9600);
  rf.initPins ();
  Serial.println("*****************RX_Mode start*****************************");
  uint8_t sta = rf.readValueFromRegister ( STATUS);
  Serial.print("sta = ");
  Serial.print(sta,HEX);
  Serial.println(" ");
  Serial.println(" **************************************************************");
  uint8_t addr[5] = {0x01,0x02,0x03,0x04,0x05};
  rf.applyRFSettings (TX_ADDRESS);   
}              
void loop() 
{ 
      uint8_t sta =  rf.startRecvData (rx_buf);
      Serial.print ("recvData  = ");
      Serial.println(sta,DEC);
      Serial.print ("(rx_buf[0] = ");
      Serial.println(rx_buf[0],DEC);
      delay(1000);

} 

